package com.itheima.utils;

/**
 * @author Tony
 * @create 2021-12-07 18:00
 */
public class IsCh {
    public static boolean isChinese(String queryString) {
        if (queryString == null){
            return false;
        }
        for (char c : queryString.toCharArray()) {
            if (isChinese(c)){
                return true;
            }
        }
        return false;
    }
    public static boolean isChinese(char c) {
        return c >= 0x4E00 &&  c <= 0x9FA5;
    }
}
